From: Lars Ingebrigtsen Date: Tue, 3 May 2022 19:29:47 +0000 (+0200) Subject: Add NEWS entry about incompatible sorting command behaviors X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~2370^2~92 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=8a7db868cc28f933bc2fb2739d122ed11c9ec872;p=emacs.git Add NEWS entry about incompatible sorting command behaviors --- diff --git a/etc/NEWS b/etc/NEWS index b0758b60a09..73e61aab327 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -135,6 +135,14 @@ of 'user-emacs-directory'. * Incompatible changes in Emacs 29.1 +--- +** Sorting commands no longer necessarily change modification status. +In earlier Emacs versions, commands like 'M-x sort-lines' would always +change buffer modification status to "modified", whether they changed +something in the buffer or not. This has been changed: The buffer is +marked as modified only if the sorting ended up changing the contents +of the buffer. + --- ** 'string-lines' handles trailing newlines differently. It no longer returns an empty final string if the string ends with a